package com.riant.day04.demo2;

/**
 * @Classname TestDemo
 * @Description TODO
 * @Date 2021/3/12 0:10
 * @Created by 张斌
 */
public class TestDemo {
    private int size;

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
    public Inner getInner(){
        return new Inner();
    }
    private class Inner implements Innerable {
        int age;

        public int getAge() {
            return age;
        }
        public void test(){
            System.out.println(age==size);
        }
        public void setAge(int age) {
            this.age = age;
        }
    }
}
